import http from './http';

export const certiByPage = (params: any) => {
  return http.post('/admin-api/dcert/certificates/rest-page', params);
};

export const paintCerti = (params: any) => {
  return http.get('/admin-api/dcert/certificates/paint', { params });
};

export const createCerti = (data: any) => {
  return http.post('/admin-api/dcert/certificates/import', data);
};

export const updateCerti = (data: any) => {
  return http.post('/admin-api/dcert/certificates/update', data);
};

export const toggleCerti = (data: any) => {
  return http.post('/admin-api/dcert/certificates/update-status', data);
};

export const resolveTemplate = (data: any) => {
  return http.post('/admin-api/dcert/certificates/resolve', data);
};
